package com.s666.demo.controller;

import com.s666.demo.common.enums.TestEnum;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author lijin
 */
@RestController
@RequestMapping("/enum")
@Slf4j
public class EnumController extends BaseController {

    private static final String MENU = "menu_study";


    @RequestMapping("/index")
    public String index() {
        TestEnum a = TestEnum.getBySymbol("success");
        log.info(a.toString());

        log.info("code:" + TestEnum.SUCCESS.getCode() + "; name:" + TestEnum.SUCCESS.getName() + "; symbol:" + TestEnum.SUCCESS.getSymbol());
        return TestEnum.SUCCESS.toString();

    }
}
